package structure.decorator;

/**
 * 坚守者
 */
public class Adherents extends WujiangDecortor {

    public Adherents(WujiangComponent wujiangComponent) {
        super(wujiangComponent);
    }

    @Override
    public void defense() {
        super.defense();
        System.out.println("防御 加入了坚守标的属性");
        addDefense();
    }

    private void addDefense() {
        System.out.println("防御 具有 坚守属性");
    }

}
